package io.cloud.tec.exception;

import io.cloud.tec.project.enums.ResultEnum;

/**
 * 错误结果异常
 */
public class ErrorResultException extends CloudBaseException {
    private Integer code;

    public ErrorResultException(ResultEnum resultEunm) {
        super(resultEunm.message);
        this.code = resultEunm.code;
    }

    public ErrorResultException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
